<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>ckplayer</title>
		
		  <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
        <!--  telephone=no：禁止自动将页面中的数字识别为电话号码, address=no：禁止自动地址转为链接,email=no：禁止自动将email转为链接 -->
        <meta name="format-detection" content="telephone=no,address=no,email=no" />
        <!-- 强制将页面布局为一列 -->
        <meta name="mobileOptimized" content="width" />
        <!-- 申明页面是移动友好的 -->
        <meta name="handheldFriendly" content="true" />
        <!-- 允许用户使用全屏模式浏览 -->
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <!-- 当用户使用全屏浏览时，将状态条设置为黑色 -->
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
		
		<style type="text/css">body{margin:0;padding:0px;font-family:"Microsoft YaHei",YaHei,"微软雅黑",SimHei,"黑体";font-size:14px}</style>
<script type="text/javascript" src="ckplayer.js"></script>
	</head>

	<body>
		<div id="video" style="width: 600px; height: 400px;"></div>
		<script type="text/javascript">
		// 获取url中的参数
		function getUrlParam (name) {
		     var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
		     var r = window.location.search.substr(1).match(reg);
		     if (r!= null) {
		        return unescape(r[2]);
		     }else{
		        return null;
		     }
		}    
		//获取url中的targetId参数
		var video = getUrlParam('video');
		var cover = getUrlParam('cover');
			var videoObject = {
				container: '#video', //容器的ID或className
				variable: 'player',//播放函数名称
				flashplayer:true,
				poster:cover,//封面图片
				video: [//视频地址列表形式
					[video, 'video/mp4', '中文标清', 0],
					[video, 'video/mp4', '中文高清', 0],
					[video, 'video/mp4', '英文高清', 10],
					[video, 'video/mp4', '英文超清', 0],
				]
			};
			var player = new ckplayer(videoObject);
		</script>
	</body>

</html>